package com.waitingresult.openapi.service;

import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * All right reserved,Designed By WangShuai
 * <p>
 * openfeign远程调用 实例代码,在需要使用Feign调用的SpringBootApplication启动类上, 添加@EnableFeignClients注解
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : PublicService
 * @Description :
 * @date : 2021/9/15 17:57
 */
@FeignClient(value = "publicService")
public interface PublicFeignService {
    @GetMapping("")
    SecurityProperties.User findByUserId(@PathVariable("id") Long id);
}
